package com.bristua.barcode.supplier.biz;

import com.bristua.barcode.common.util.DateUtils;
import com.bristua.barcode.common.util.SequenceUtil;
import com.bristua.barcode.supplier.dao.TSupplierMapper;
import com.bristua.barcode.supplier.model.TSupplier;
import com.bristua.barcode.supplier.model.condition.AddSupplierParams;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2019/8/3 0003.
 */
@Service
@Transactional
public class UpdateSupplierBiz {

    @Resource
    private TSupplierMapper tSupplierMapper;


    public void updateSupplier(AddSupplierParams addSupplierParams){
        TSupplier tSupplier = new TSupplier();
        BeanUtils.copyProperties(addSupplierParams,tSupplier);
        tSupplierMapper.updateByPrimaryKeySelective(tSupplier);

    }
}
